$(document).ready(function(){
       var windowHeight = $(window).innerHeight();
       var windowWidth = $(window).innerWidth();
       //console.log(windowHeight);
       var new_height = windowHeight - (97 + 30 + 40 + 30 + 11);
       var content_height = windowHeight - (124 + 33);
       console.log(content_height);
       var new_width = windowWidth - 0;
       $('.mainContent').css('height', content_height + 'px');
      // $('.m510').css('height', (content_height-50) + 'px');
       $('.footerCenter').css('margin-left', ((new_width / 2) - 220) + 'px');
       $('.chart_footer').css('top', (windowHeight - 30) + 'px');
       
	   var scroll_height = new_height - 27;
	   if (scroll_height > 590)
	   {
		   scroll_height = 590;
	   }
       $('.insideContentRight .scroll').css('height',scroll_height +'px');
       //$('.scrollWidth').css('width', new_width + 'px');
	});

	$(window).resize(function(){
       var windowHeight = $(window).innerHeight();
       var windowWidth = $(window).innerWidth();
       var content_height = windowHeight - (124 + 33);
       var new_height = windowHeight - (97 + 30 + 40 + 30 + 11 );
       var new_width = windowWidth - 0;
       $('.mainContent').css('height', content_height + 'px');
       //$('.m510').css('height', (content_height-50) + 'px');
       $('.chart_footer').css('top', (windowHeight - 30) + 'px');
       $('.footerCenter').css('margin-left', ((new_width / 2) - 200) + 'px');
       
	   var scroll_height = new_height - 27;
	   if (scroll_height > 590)
	   {
		   scroll_height = 590;
	   }
       $('.insideContentRight .scroll').css('height',scroll_height +'px');
       //$('.scrollWidth').css('width', new_width + 'px');
});